Stop using no-longer-existing chisqprob
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Sat, 2 Mar 2019 14:59:35 +0000 (14:59 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sat, 2 Mar 2019 14:59:35 +0000 (14:59 +0000)
Needed for compatibility with scipy >= 1.0

Author: Kevin "bashtage" Sheppard
Origin: upstream https://github.com/statsmodels/statsmodels/commit/575fc69257171e1dbc86461b510eb818a63c5fab
Forwarded: not-needed

Gbp-Pq: Name chisqprob.patch

statsmodels/discrete/discrete_model.py

index 7773c6876f18ca9e3a0db1a2f657144e2b9ce1f0..db29bfb0d2c206fda81189b3bc6bea62d3a6a599 100644 (file)
@@ -2402,7 +2402,7 @@ class DiscreteResults(base.LikelihoodModelResults):
 
     @cache_readonly
     def llr_pvalue(self):
-        return stats.chisqprob(self.llr, self.df_model)
+        return stats.distributions.chi2.sf(self.llr, self.df_model)
 
     @cache_readonly
     def llnull(self):